import App from './App'
import store from './store'
import plugin from './js_sdk/uni-admin/plugin'
import http from '@/utils/http.js';
import common from '@/utils/common.js';
import elementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

Vue.use(elementUI);
Vue.use(plugin)
App.mpType = 'app'
const app = new Vue({
  store,
  ...App
})
app.$mount()
// #endif

Vue.prototype.common = common
Vue.prototype.$http = http
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
	Vue.use(elementUI);
  app.use(plugin)
  app.use(store)
  return {
    app
  }
}
// #endif
